package cn.kgc.kgceruekauserconsumer.fallback;

import cn.kgc.kgceruekauserconsumer.client.RestUserServiceCilent;
import cn.kgc.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author geQiang
 * @version 1.0
 * @date 2019/4/13
 * @description cn.kgc.kgceruekauserconsumer.fallback 熔断处理类
 */
@Component
public class RestUserServiceClientFallback  implements RestUserServiceCilent {
    @Override
    public String login(String username, String password) {
        return null;
    }

    @Override
    public User loginByUser(User user) {
       user.setAge(0);
       user.setAddress("不知道");
       user.setUsername("不知道");
       user.setPassword("不知道");
        return user;
    }
}
